package cn.tedu.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/client")
public class HelloController {
    @RequestMapping("/hello")
    public String sayHello(String name) {
        // 通过端口号的标识，区分一下服务被调用时的响应来源
        return "Hello " + name + ", I am from 9001";
    }
}
